import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Categories from '@/components/Categories'
import IntegralIndex from '@/components/IntegralIndex'
import ShoppingCart from '@/components/ShoppingCart'
import User from '@/components/User'
import ProductLists from '@/components/ProductLists'
import userData from '@/components/userData'
import userOrder from '@/components/userOrder'
import IntegralData from '@/components/IntegralData'
import productDetail from '@/components/productDetail'
import IntegralMine from '@/components/IntegralMine'
import HomeDelivery from '@/components/HomeDelivery'
import HomeLimited from '@/components/HomeLimited'
import HomeLogin from '@/components/HomeLogin'
import IntegralExchange from '@/components/IntegralExchange'
import userCollect from '@/components/userCollect'
import userSale from '@/components/userSale'
import userSet from '@/components/userSet'
import userHelp from '@/components/userHelp'
import userRecommend from '@/components/userRecommend'
import userCoupon from '@/components/userCoupon'
import userQuit from '@/components/userQuit'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,     
    },{
      path: '/categories',
      component: Categories
    },{
      path: '/integralIndex',
      component: IntegralIndex
    },{
      path: '/shoppingCart',
      component: ShoppingCart
    },{
      path: '/user',
      component: User
    },{
      path:'/ProductLists',
      component:ProductLists
    },
    {
      path: '/userData',
      component: userData
    },
    {
      path: '/userOrder',
      component: userOrder
    },
    {
      path: '/productDetail',
      component: productDetail
    },
    {
      path: '/IntegralData',
      component: IntegralData
    },
    {
      path:'/IntegralMine',
      component:IntegralMine
    },
    {
      path:'/HomeDelivery',
      component:HomeDelivery
    },
    {
      path:'/HomeLogin',
      component:HomeLogin
    },
    {
      path:'/HomeLimited',
      component:HomeLimited
    },
    {
      path:'/IntegralExchange',
      component:IntegralExchange
    },
    {
      path:'/userCollect',
      component:userCollect
    },
    {
      path: '/userSale',
      component: userSale
    },
    {
      path:'/userSet',
      component:userSet
    },
    {
      path:'/userHelp',
      component:userHelp
    },
    {
      path:'/userRecommend',
      component:userRecommend
    },
    {
      path:'/userCoupon',
      component:userCoupon
    },
    {
      path:'/userQuit',
      component:userQuit
    }
  ] 
})
